<?php use_helper('Date'); $sf_user->setCulture('ru_RU'); ?>

<h2 class="block_title_red"><span class='navispan'><?php echo link_to('Релизы', 'releases/index') ?></span></h2>
<?php if( $relizes->count()>0 ):?>

	<?php foreach($relizes as $reliz):?>
	<div class="article">
		<?php if($reliz['image']):?>
			<?php echo link_to('<img title="'.$reliz['image_text'].'" src="/uploads/relizes/thumbnail_70_70/'.$reliz['image'].'"/>','reliz_view',$reliz)?>
		<?php endif;?>
		<?php echo link_to($reliz['title'],'reliz_view',$reliz,'class="entity_header"')?><br/>
		<span class="cat_link">
			<?php echo link_to($reliz['RelizCategory']['title'],'view_releases_category',$reliz['RelizCategory'],"title='Показать все релизы по категории ".$reliz['RelizCategory']['title']."'");?> <br/> 
			<?php echo format_datetime($reliz['updated_at'],'f')?>
		</span><br/>
	</div>
	<?php endforeach;?>
<?php else:?>
Нет релизов
<?php endif;?>
<div style='text-align:right'>
			<?php echo $sf_user->isAuthenticated() ? link_to('Разместить релиз','account/myreleases') : link_to('Разместить релиз','@registration_link') ?>
</div>